﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wp.BLL;
using Wp.DAL;

public partial class Controls_VideoList : System.Web.UI.UserControl
{
    public static string PostType = "video";
    private void LoadVideo()
    {
        List<TblPostsEntity> list = TblPostsManager.CreateInstant().SelectTblPostByPostType(PostType, "");
        this.rpt.DataSource = list;
        this.rpt.DataBind();
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!base.IsPostBack)
        {
            this.LoadVideo();
        }
    }
}